var Model = require('../model/wechat_promotion.js')
exports.find = function(condition, opt, cb) {
    Model.find(condition, opt, function(err, result) {
        cb.call(null, err, result)
    })
}
exports.update = function(condition, update, opt, cb) {
    Model.update(condition, { $set: update }, opt, function(err) {
        cb.call(null, err)
    })
}
exports.save = function(data, cb) {
    var entity = new Model(data)
    entity.save(function(err) {
        cb.call(null, err)
    })
}